Xbasic

TRAILING Function

Syntax

Separation_Characters as C = TRAILING(C strings,N word_number)

Arguments

strings

A string expression containing words separated by repeating characters.

word_number

Specifies the word in the Input_String to examine. Numeric

Description

Returns the non-word characters following the specified word.

Discussion

TRAILING() returns the characters that separate the word_number word in the input, strings, from the next word.

Example

trailing("now...is,,,,the:::time",2) ->  ",,,,"
trailing("now...is,,,,the:::time",1) -> "..."

See Also